import cong.Zufang;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Mytest {
  public static void main(String[] args) {
    //
      ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");
      Zufang fangdong = applicationContext.getBean("fangdong", Zufang.class);
      fangdong.rent();
  }
}
